package com.xframe.xdal.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 功能描述:当前的配置对象
 *
 * @author xufeng
 * @version 1.0
 * @date 2022-09-26
 */
@Component
@ConfigurationProperties(prefix = "xdal")
@Data
public class XDalConfigBean {

    /**
     * 配置文件的根目录
     */
    private String configfielBasePath = "";
    /**
     * 序列化配置目录
     */
    private String serJsonConfigPath = "";
    /**
     * 多语言配置文件根目录
     */
    private String langConfigPath = "";
    /**
     * 加密解密的密匙
     */
    private String encryptionKey = "Djk@%&opN!$$*%(U";
    /**
     * 数据源配置集合
     */
    private List<DataSourceConfig> dataSourceConfigList;

    /**
     * Redis配置队列
     */
    private List<RedisConfig> redisConfigList;

    /**
     * Redis的配置
     */
    private RedisConfig redis;

    private ElasticsearchConfigItem elasticsearch;
}
